package equipe2msvy.ProjectServeurApplication.beans;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;


@Entity
@Table(name="MEMBRESOCIETE")
@PrimaryKeyJoinColumn(name="ID_MEMBRESOCIETE")
public class MembreSociete extends Personne{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@ManyToOne
	@JoinColumn(name="ID_SOCIETE")
	private Societe societe;
	public MembreSociete() {
		super();
		// TODO Auto-generated constructor stub
	}

	public MembreSociete(String login, String password, String nom,
			String prenom, String adresse, String email, String telephone) {
		super(login, password, nom, prenom, adresse, email, telephone);
		// TODO Auto-generated constructor stub
	}

	public Societe getSociete() {
		return societe;
	}

	public void setSociete(Societe societe) {
		this.societe = societe;
	}

}
